
time set 23900t

#系统
team join SystemTeam PlayerCount
scoreboard objectives add System dummy "系统"
#【系统】最高连杀：默认值：5
scoreboard players set MAXComKill System 5
team join SystemTeam MAXComKill
#【系统】一半数：用于计算半数
scoreboard players set SystemHelf System 2
team join SystemTeam SystemHelf
#【系统】倒数
scoreboard players set SystemContrary System -1
team join SystemTeam SystemContrary
#【系统】雨：用于控制天气，默认值：0  单位：秒
scoreboard players set SystemRain System 0
team join SystemTeam SystemRain
#【系统】随机数：1-10
scoreboard players set Random System 0
team join SystemTeam Random
scoreboard players set RandomMax System 10
team join SystemTeam RandomMax
#【系统】记录在线人数与战斗中玩家
team join SystemTeam OnlinePlayerCount
team join SystemTeam AlivePlayer
#【系统】记录三个免费英雄的书页号
scoreboard players set SystemFreeHero1 System 10
scoreboard players set SystemFreeHero2 System 20
scoreboard players set SystemFreeHero3 System 30
scoreboard players set SystemFreeHero4 System 40

#【大逃杀对局信息】
scoreboard objectives add DieOutInfo dummy {"text":"对 局 信 息","color": "gold"}
scoreboard objectives add DieOutTrigger trigger "大逃杀触发器"

#第一阶段记录同意人数，第二阶段记录已选择完英雄人数，第四阶段记录未淘汰人数
team join SystemTeam AlivePlayerCount
#大逃杀刷圈更新次数
team join SystemTeam UpdateCount
#大逃杀专用计时：在system_second中每秒-1
#前三阶段记录时间，第四阶段记录正在刷圈时间，与刷圈固定后等待时间
team join SystemTeam TimeClock
##大逃杀所有阶段：
#   第一阶段：开启对局同意  1 min
#   第二阶段：选择英雄  1 min
#   第三阶段：初始化对局信息  1 ms
#   第四阶段：刷圈战斗阶段  12 min
#   第五阶段：游戏结束阶段  1 ms


#【玩家】ID：每个玩家的唯一ID，进服即赋值，不可改变
scoreboard objectives add DataID dummy "玩家唯一ID"
#【系统】添加创建玩家为管理员
tag @a[tag=!NewPlayer,tag=!OldPlayer,tag=!Watch,tag=!Alive] add admin
execute if entity @a[tag=!NewPlayer,tag=!OldPlayer,tag=!Watch,tag=!Alive] run scoreboard players set PlayerCount System 1


#【玩家系统通用】
scoreboard objectives add SystemMenu trigger "英雄菜单"
scoreboard objectives add SystemAdmin trigger "管理员选项"
scoreboard objectives add SystemGift trigger "礼包系统"

#【热插拔系统】概念：指那些可以由管理员自由控制的模式
#【黑夜狂欢】默认值：1：开启  0：关闭
scoreboard players set IsNightRevelry SystemAdmin 1
team join SystemTeam IsNightRevelry
#【逢魔时刻】默认值：1：开启  0：关闭
scoreboard objectives add BossMenu trigger "Boss菜单触发器"
scoreboard players set IsBossTime SystemAdmin 1
team join SystemTeam IsBossTime
#【性能模式】默认值：1：开启  0：关闭
scoreboard players set IsFastGame SystemAdmin 0
team join SystemTeam IsFastGame
#【大逃杀对局】默认值：0：关闭  1：开启    如果当前已开启大逃杀对局则不打断
team join SystemTeam IsTheDieOutGame
execute unless score IsTheDieOutGame SystemAdmin matches 1.. run scoreboard players set IsTheDieOutGame SystemAdmin 0


scoreboard objectives add SystemJoin dummy "进入游戏"
scoreboard objectives add SystemItem minecraft.custom:minecraft.drop "掉落物品"
scoreboard objectives add SystemKill playerKillCount "系统击杀"
scoreboard objectives add SystemDeath deathCount "系统死亡"
scoreboard objectives add SystemSneak minecraft.custom:minecraft.sneak_time "潜行快速降落"
scoreboard objectives add SystemBuyHero minecraft.used:minecraft.enchanted_golden_apple "购买英雄判据"
scoreboard objectives add SystemCancelBuy minecraft.dropped:minecraft.enchanted_golden_apple "取消购买英雄"
scoreboard objectives add SystemComKill dummy "连杀系统"
scoreboard objectives add DataComRank dummy "玩家连杀记录排行榜"
scoreboard objectives add SystemOutItem dummy "丢垃圾计时"

#默认值：20，燃烧时为负数
scoreboard objectives add FireTime dummy "燃烧时间"
#默认值：10，无人时每秒-1
scoreboard objectives add SystemNotAround dummy "周围没人计时"



#【玩家】货币信息：用于交易时增加或减少
scoreboard objectives add DataGold dummy "金币"
scoreboard objectives add DataHeroCard dummy "英雄卡"
scoreboard objectives add DataEXCard dummy "英雄体验卡"
scoreboard objectives add DataVIP dummy "全能英雄使用权（分）"
#【玩家】存储信息：这些信息一般不会轻易改变
scoreboard objectives add DataKillCount playerKillCount {"text":"击杀数排行榜","color":"red","bold": true}
scoreboard objectives setdisplay sidebar DataKillCount
scoreboard objectives add DataDeathCount deathCount "死亡总次数"
scoreboard objectives add DataLeavel level "战斗等级"
scoreboard objectives setdisplay list DataLeavel

scoreboard objectives add DataOnlineTime dummy "在线时间（分）"
scoreboard objectives add DataShangHai minecraft.custom:minecraft.damage_dealt "造成总伤害"
scoreboard objectives add DataShouShang minecraft.custom:minecraft.damage_taken "承受总伤害"


#【玩家】用作技能的信息数据：用作技能判断，随时可变
scoreboard objectives add skTimeKe minecraft.custom:minecraft.play_time "存活时间（刻-所有实体）"
scoreboard objectives add skHealth health {"text":"❤","color":"red"}
scoreboard objectives setdisplay belowName skHealth
scoreboard objectives add skFood food "饥饿值"
scoreboard objectives add skArmor armor "护甲值"
scoreboard objectives add skShangHai minecraft.custom:minecraft.damage_dealt "对玩家造成伤害"
scoreboard objectives add skShouShang1 minecraft.custom:minecraft.damage_taken "受伤"
scoreboard objectives add skShouShang2 minecraft.custom:minecraft.damage_absorbed "吸收伤害"
scoreboard objectives add skShouShang3 minecraft.custom:minecraft.damage_resisted "抵挡伤害"
scoreboard objectives add skJump minecraft.custom:minecraft.jump "跳跃"
scoreboard objectives add skKill playerKillCount "击杀技能"
scoreboard objectives add skDie deathCount "死亡技能"

scoreboard objectives add skShangHaiState minecraft.custom:minecraft.damage_dealt "攻击-状态"
scoreboard objectives add skShouShangState minecraft.custom:minecraft.damage_taken "受伤-状态"
scoreboard objectives add skZhanDouState dummy "战斗状态计时"

scoreboard objectives add skRunDistance minecraft.custom:minecraft.sprint_one_cm "奔跑距离"
scoreboard objectives add skWalkDistance minecraft.custom:minecraft.walk_one_cm "走路距离"
scoreboard objectives add skFly minecraft.custom:minecraft.aviate_one_cm "飞行"
scoreboard objectives add skFlyDistance minecraft.custom:minecraft.aviate_one_cm "飞行距离"
scoreboard objectives add skSneak minecraft.custom:minecraft.sneak_time "潜行"
scoreboard objectives add skSneakTime minecraft.custom:minecraft.sneak_time "潜行时间"

#武器
scoreboard objectives add skWooden_sword0 minecraft.used:minecraft.wooden_sword "使用木剑"
scoreboard objectives add skStone_sword0 minecraft.used:minecraft.stone_sword "使用石剑"
scoreboard objectives add skGolden_sword0 minecraft.used:minecraft.golden_sword "使用金剑"
scoreboard objectives add skIron_sword0 minecraft.used:minecraft.iron_sword "使用铁剑"
scoreboard objectives add Diamond_sword0 minecraft.used:minecraft.diamond_sword "使用钻石剑"

scoreboard objectives add skIron_shovel0 minecraft.used:minecraft.iron_shovel "使用铁锹"
scoreboard objectives add skGolden_shovel0 minecraft.used:minecraft.golden_shovel "使用金锹"
scoreboard objectives add skIron_axe0 minecraft.used:minecraft.iron_axe "使用铁斧"

scoreboard objectives add skWooden_sword1 minecraft.broken:minecraft.wooden_sword "用坏木剑"
scoreboard objectives add skStone_sword1 minecraft.broken:minecraft.stone_sword "用坏石剑"
scoreboard objectives add skGolden_sword1 minecraft.broken:minecraft.golden_sword "用坏金剑"
scoreboard objectives add skIron_sword1 minecraft.broken:minecraft.iron_sword "用坏铁剑"
scoreboard objectives add Diamond_sword1 minecraft.broken:minecraft.diamond_sword "用坏钻石剑"
scoreboard objectives add skIron_axe1 minecraft.used:minecraft.iron_axe "用坏铁斧"
scoreboard objectives add skGolden_axe1 minecraft.used:minecraft.golden_axe "用坏金斧"


scoreboard objectives add skTrident0 minecraft.used:minecraft.trident "使用三叉戟"
scoreboard objectives add skShield0 minecraft.custom:damage_blocked_by_shield "使用盾牌格挡"
scoreboard objectives add skShield000 minecraft.custom:damage_blocked_by_shield "使用盾牌格挡总伤害"
scoreboard objectives add skShield1 minecraft.broken:minecraft.shield "用坏盾牌"


scoreboard objectives add skBow0 minecraft.used:minecraft.bow "使用弓"
scoreboard objectives add skBow1 minecraft.broken:minecraft.bow "用坏弓"
scoreboard objectives add skFashi0 minecraft.used:minecraft.carrot_on_a_stick "使用法杖"
scoreboard objectives add skCrossBow0 minecraft.used:minecraft.crossbow "使用弩"
scoreboard objectives add skCrossBow1 minecraft.broken:minecraft.crossbow "用坏弩"








#玩家状态
#技能
scoreboard objectives remove skCDKe
scoreboard objectives add skCDKe minecraft.custom:minecraft.play_time "刻度技能"

scoreboard objectives add skPlayer dummy "部分英雄技能"
# scoreboard objectives remove CDKe
# scoreboard objectives add CDKe minecraft.custom:minecraft.play_one_minute "刻度技能"
scoreboard objectives add skEXBottle minecraft.used:minecraft.experience_bottle "使用技能"
scoreboard objectives add skCDEXBottle dummy "1技能冷却时间"
scoreboard objectives add skPearl minecraft.used:minecraft.ender_pearl "使用末影珍珠"
scoreboard objectives add skCDPearl dummy "2技能冷却时间"
scoreboard objectives add skEgg minecraft.used:minecraft.egg "使用鸡蛋"
scoreboard objectives add skCDEgg dummy "3技能冷却时间"
scoreboard objectives add skJPG minecraft.used:minecraft.golden_apple "使用金苹果"
scoreboard objectives add skCDJPG dummy "金苹果技能冷却时间"
scoreboard objectives add skSnowball minecraft.used:minecraft.snowball "使用雪球"
scoreboard objectives add skCDSnowball dummy "雪球技能冷却时间"

scoreboard objectives add skCDPlayer dummy "玩家个人CD1"
scoreboard objectives add skCDPlayer1 dummy "玩家个人CD2"
scoreboard objectives add skCDEntity dummy "实体CD1"
scoreboard objectives add skCDEntity1 dummy "实体CD2"

#【玩家】特殊效果
scoreboard objectives add EFing dummy "正在执行特殊效果(刻)"
scoreboard objectives add EFUnControl dummy "免控"
scoreboard objectives add EFReborn dummy "重生"
scoreboard objectives add EFLock dummy "禁锢"
scoreboard objectives add EFDizzy dummy "眩晕"
scoreboard objectives add EFLocks dummy "封锁"
scoreboard objectives add EFDisarm dummy "缴械"



#1英雄大厅计分板
scoreboard objectives add ZuoZhu1 dummy "佐助（少年）-千鸟"
# 斩钢闪是否就绪：1：就绪，0：非就绪
scoreboard objectives add yasuo2 dummy "亚索-斩刚闪是否就绪"
scoreboard objectives add yasuo3 dummy "亚索-踏前斩内置冷却"
scoreboard objectives add yingdunbing5 dummy "艾吉斯-破釜沉舟"
scoreboard objectives add yimo5 dummy "血鸦-疫病层数"

#2英雄大厅计分板
scoreboard objectives add mieshang5 dummy "灭殇-恶魔之触"
# scoreboard objectives add aixi1 minecraft.used:minecraft.crossbow "艾希-使用弩"
# scoreboard objectives add aixi5 dummy "艾希-全神贯注层数"
# scoreboard objectives add aixi4 dummy "艾希-全神贯注刷新计时"
scoreboard objectives add shanling5 dummy "闪灵-爱意标记"
scoreboard objectives add mengyan5 dummy "梦魇-噩梦层数"



#3英雄大厅计分板
scoreboard objectives add xiu5 dummy "休-风巽百尘计时"
scoreboard objectives add akeer4 dummy "阿克尔-是否在野性呼唤中"
scoreboard objectives add akeer5 dummy "阿克尔-狩猎者计时"
scoreboard objectives add daoshaolin2 dummy "孤帆远影-幻魔身法计数"
scoreboard objectives add xingchen5 dummy "氐-微光层数"
# scoreboard objectives add huihui1 dummy "惠惠-是否双技能施法"
# scoreboard objectives add huihui5 dummy "惠惠-魔力值"
scoreboard objectives add shihuangzhe5 dummy "维尔森-荒土值"
scoreboard objectives add qishi1 dummy "希兹克利夫-GM权限是否已开启"
scoreboard objectives add miyan1 dummy "弥彦-是否被神罗天征"



#BOSS英雄计分板
scoreboard objectives add BOSSmieshang5 dummy "BOSS灭殇-恶魔之触"



